$containerSize: 150px;

.card-container {
  width: $containerSize;
  height: $containerSize;
  background-color: white;
  position: relative;
  border-radius: 8px;
  overflow:hidden;
}

.tran-line {
  height: 3px;
  width: 100%;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background-color: #333;
  z-index: 99;
}

.card-item {
  font-size: 90px;
  text-align: center;
  width: 100%;
  height: 50%;
  position: absolute;
  left: 0;
  overflow: hidden;
  background-color: white;
}

.pre-spin {
  transform: rotateX(0) !important;
  transition: 0.5s;
}

.next-spin {
  transform: rotateX(180deg);
  transition: 0.5s;
}

.one {
  line-height: $containerSize;
}

.two {
  top: 50%;
  line-height: 0;
  transform-origin: top center;
  backface-visibility: hidden;
  transform: rotateX(180deg);
  z-index: 2;
}

.three {
  line-height: $containerSize;
  transform-origin: center bottom;
  backface-visibility: hidden;
  z-index: 2;
}

.four {
  line-height: 0;
  top: 50%;
}